
from selenium import webdriver


options = webdriver.ChromeOptions()

options.page_load_strategy = "normal"  # 等待页面完全加载
# 创建浏览器驱动对象
driver = webdriver.Chrome(options=options)
# 隐式等待
driver.implicitly_wait(5)
url = r"https://www.bilibili.com/"
driver.get(url)
js1 = "window.scrollTo(0,10000)"
driver.execute_script(js1)
input("按任意键关闭")
# # 关闭驱动对象
driver.close()
driver.quit()
print("结束")
